package com.qf.smsplatfrom.mapper;

import com.qf.smsplatfrom.pojo.TFilters;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface FiltersMapper {

    @Insert("insert into t_filters(filters,filter_state) values(#{filters},#{filterState})")
    int insertFilter(TFilters tFilters);


    int updateFilter(TFilters tFilters);

    int deleteFilter(@Param("ids") List<Integer> ids);


    @Select("select * from t_filters")
    List<TFilters> showAllFilter();

}
